<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@taglib prefix="page" uri="http://www.opensymphony.com/sitemesh/page"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
     response.setHeader("Pragma", "no-cache");
     response.setHeader("Cache-Control", "no-cache");
     response.setDateHeader("Expires", 0);
     //System.out.println(request.getServletPath());
     String servletPath = request.getServletPath();
     String partURL = "";
     if(servletPath.contains("!")){
    	 partURL = servletPath.substring(1,servletPath.indexOf("!"));
     }else{
    	 partURL = servletPath.substring(1,servletPath.indexOf("."));
     }
     //System.out.println(partURL);
     request.setAttribute("partURL", partURL);
%>
<html>
    <head>
    	<link rel="stylesheet" type="text/css" media="screen,projection,print" href="css/mf42_layout2_setup.css" />
		<link rel="stylesheet" type="text/css" media="screen,projection,print" href="css/mf42_layout2_text.css" />
		<link rel="stylesheet" type="text/css" media="screen,projection,print" href="css/common.css" />
		<link rel="stylesheet" type="text/css" href="css/jquery.autocomplete.css" />
		
		<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css"/>
		<link rel="stylesheet" href="css/template.css" type="text/css"/>
		<script src="js/jquery-1.6.min.js" type="text/javascript"></script>
		<script src="js/jquery.autocomplete.js" type="text/javascript"></script>
		<script src="js/languages/jquery.validationEngine-zh_CN.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/jQuery.FillOptions.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/jQuery.CascadingSelect.js" type="text/javascript" charset="utf-8"></script>
		<script>
			jQuery(document).ready(function(){
				// binds form submission and fields to the validation engine
				jQuery("form").validationEngine();
				
				
				$("textarea").attr("rows","3").attr("cols","30");
			});
		</script>
		
		
		<link rel="icon" type="image/x-icon" href="./img/favicon.ico" />
        <title><decorator:title default="ac-union order system"  />
        </title>
        <s:head theme="css_xhtml"/>
        <decorator:head />
    </head>
   <body>
  <!-- Main Page Container -->
  <div class="page-container">

   <!--  START COPY here -->

    <!-- A. HEADER -->      
    <div class="header">
      
      <!-- A.1 HEADER TOP -->
      <div class="header-top">
        <div class="round-border-topleft"></div><div class="round-border-topright"></div>      
        
        <!-- Sitelogo and sitename -->
        <a class="sitelogo" href="#" title="Home"></a>
        <div class="sitename">
          <h1>AC-union 1.1</h1> 
          <h2>Order Tracking System<br /></h2>
        </div>
    
        <!-- Navigation Level 0 --><!-- Navigation Level 1 -->
        <div class="nav1"><ul>
            <li><a href="#" title="Send us a message">Contact</a></li>								
            <li><a href="#" title="Send us a message">Impressum</a></li>								            
          </ul>
        </div>              
      </div>
            
      
    </div>

   <!--  END COPY here -->

    <!-- B. MAIN -->
    <div class="main">
 
      <!-- B.1 MAIN NAVIGATION -->
      <div class="main-navigation">

        <!-- Navigation Level 3 -->
        <div class="round-border-topright"></div>
        <h1 class="first">Title</h1>

        <!-- Navigation with grid style -->
        <dl class="nav3-grid">
          <!-- 
	          <dt><a href="#">Customer Manage</a></dt>
	             <dd><a class="nowUrl" href="order!list.action">order list</a></dd>
	             <dd><a href="customer!list.action">customer list</a></dd>
	             <dd><a href="pn!list.action">PN list</a></dd>
            -->       	
          	<s:iterator value="@com.ac.config.MenuConfig@list">
          		<dt><a href="#"><s:property value="name"/></a></dt>
          		<s:iterator value="list">
          			<dd><a <s:if test="url.startsWith(#request.partURL)">class="nowUrl"</s:if> href=<s:property value="url"/>><s:property value="name"/></a></dd>
          		</s:iterator>
          	</s:iterator>
        </dl>   
        

      </div>
 
      <!-- B.1 MAIN CONTENT -->
      <div class="main-content">
        
        <!-- Pagetitle -->
        <decorator:body  />
      </div>
     </div>

    <div class="footer">
      <p>Copyright &copy; 2008 AC-union | All Rights Reserved</p>
      <p class="credits">Design by harrison.qe | Powered by AC-union </p>
    </div>      
  </div> 
</body>
</html> 